Page({
  data: {
    repairList: []
  },
  onLoad() {
    this.getRepairList()
  },
  async getRepairList() {
    const res = await wx.http({
      url: '/repair'
    })
    this.setData({
      repairList: res.data.rows
    })
  },
  goDetail(ev) {
    wx.navigateTo({
      url: '/repair_pkg/pages/detail/index?id=' + ev.mark.id,
    })
  },
  addRepair() {
    wx.navigateTo({
      url: '/repair_pkg/pages/form/index',
    })
  },
})
